<!--包含头部文件-->
{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 团购商品列表 </nav>
<div class="page-container">
<div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius"  href="{:url('deal/add')}"><i class="Hui-iconfont">&#xe600;</i> 添加团购商品</a></span> <span class="r"></span> </div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="80">ID</th>
					<th width="100">名称</th>
					<th width="60">申请时间</th>
					<th width="60">开始时间-结束时间</th>
					<th width="60">状态</th>
					<th width="100">操作</th>
				</tr>
			</thead>
			<tbody>
				{volist name="deal" id="vo"}
				<tr class="text-c">
					<td>{$vo.id}</td>
					<td>{$vo.name}</td>
					<td>{$vo.create_time|strtotime|date="Y-m-d h:i:s", ###}</td>
					<td>{$vo.start_time|intval|date="Y-m-d h:i:s", ###}-{$vo.end_time|intval|date="Y-m-d h:i:s", ###}</td>
					<td class="td-status">{$vo.status|status}</td>
					<td class="td-manage">
                        <a style="text-decoration:none" class="ml-5" 
                        onClick="o2o_edit('团购商品详情数据', '{:url('admin/deal/detail', ['id'=>$vo.id, 'bis_id'=>$bis_id])}' )" href="javascript:;" title="查看"><i class="Hui-iconfont">&#xe6df;</i></a> 
                        <a style="text-decoration:none" class="ml-5" onClick="o2o_del('{:url('admin/deal/status', ['id'=>$vo.id, 'status'=>-1])}' )" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
                    </td>
				</tr>
				{/volist}
			</tbody>
		</table>
	</div>
    {:pagination($deal)}
</div>
<!--包含头部文件-->
{include file="public/footer" /}
